import { DataProxy } from "../../frame/A-LIB/sources/lib.b.data";

class Trigger {
	/** 全局按钮点击事件 */
	CLICK: {
		component: string,
		button: string,
	};

	/** 当日首次登陆时出发 */
	NEW_DAY: boolean;
}

var proxy_ins: Trigger;

export default function get_proxy(prefix?: string){
	if(!proxy_ins){
		proxy_ins = DataProxy.initProxy('global_trigger', new Trigger(), false, null, prefix??'');
	}
	return proxy_ins;
}
